package com.service;

import java.util.List;

import com.dao.OrderDao;
import com.dao.OrderItemDao;
import com.model.Orderitem;
import com.model.Orders;

public class OrderItemService {
	OrderItemDao dao=new OrderItemDao();
	//添加订单详情页信息
	public void add(Orderitem item) throws Exception{
		dao.add(item);
	}
	//订单详情页进行分页展示
	public List<Orderitem> queryItem_show(Orderitem item,int cp,int pagesize){
		return dao.queryItem_show(item, cp, pagesize);
	}
	//查询总条数 根据需求变化,与queryItem_show搭配使用
	public int count_user(Orderitem item){
		return dao.count_user(item);
	}
}
